package tc.alert.tckejisoc.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tc.alert.tckejisoc.entity.UserInfo;
import tc.alert.tckejisoc.mapper.UserInfoMapper;
import tc.alert.tckejisoc.service.UserInfoService;

import java.util.List;


@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoService {

    @Autowired
    UserInfoMapper userMapper;

    /**
     * @description: 查询用户信息
     * @author: zyz
     * @date: 2024/8/30 9:27
     * @return: com.zyz.mybatis.entity.UserInfo
     **/
    @Override
    public UserInfo getOneUser(Integer id) {
        return userMapper.selectById(id);
    }

    @Override
    public List<UserInfo> selectAll() {
        return userMapper.selectAll();
    }
}
